
package com.longrise.common.baseapp;


import android.app.Application;
import android.content.Intent;
import com.tencent.tinker.loader.app.DefaultApplicationLike;


/**
 * Created by callxkj on 2017/3/22.
 * applicationlike类
 */

public class BaseAppLike extends DefaultApplicationLike {

    private static final String TAG = "BaseAppLike";
    private static Application mAPP;
    public BaseAppLike(Application application, int tinkerFlags,
                       boolean tinkerLoadVerifyFlag, long applicationStartElapsedTime,
                       long applicationStartMillisTime, Intent tinkerResultIntent) {
        super(application, tinkerFlags, tinkerLoadVerifyFlag,
                applicationStartElapsedTime, applicationStartMillisTime, tinkerResultIntent);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mAPP = getApplication();
    }

    /**
     * 获取application 对象
     */
    public static Application getAPP() {
        return mAPP;
    }

}
